package db4o;

import pojo.Device;
import pojo.User;

public class UserModificator extends DBManager {

	private UserRetriever userRetriever;

	public UserModificator() {
		userRetriever = new UserRetriever();
	}

	public void assignDevice(String email, Device device) {
		User u = userRetriever.fetchUser(email);
		u.addDevice(device);
		super.getDbManager().store(u);
	}
}
